package rifl.meres5.commons.tool;

import javax.swing.JOptionPane;

import rifl.meres4.commons.model.Software;
import rifl.meres4.commons.step.IWorkflowStep;

public abstract class AbstractDevelopmentTool implements IDevelopmentTool {

	protected Software callStep(IWorkflowStep step, Software software) {
		if (step == null) throw new IllegalArgumentException("step");
		if (software == null) throw new IllegalArgumentException("software");
		JOptionPane.showMessageDialog(null, "Currently executing " + step.getClass().getSimpleName() + " on Software: " + software.getId());
		return step.doStep(software);
	}
	
}
